package com.pearl.base.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;

/**
 * 统一异常响应状态码枚举
 *
 * @author TangDan
 * @version 1.0
 * @since 2022/9/5
 */
@NoArgsConstructor
@AllArgsConstructor
public enum ExceptionCodeEnum implements StatusCode {

    ACCESS_DENIED(403, "拒绝访问"),

    SYSTEM_ERROR(500, "系统异常");

    private int code;

    private String msg;

    @Override
    public int getCode() {
        return code;
    }

    @Override
    public String getMsg() {
        return msg;
    }
}
